package com.dingwei.superiordiary.bean;

import com.dingwei.superiordiary.base.MyBaseBean;

import java.util.List;

/**
 * Created time 2018/5/12.
 * Creator 南柯一梦丶 on
 * Personal signature 余生还长 何必慌张
 * Page description :
 */
public class ShopCartListBean extends MyBaseBean {
    /**
     * data : [{"store_name":"优品官网","products":[{"id":"1","product_id":"110","option":{"label":"浅灰色","value":"均码"},"quantity":"1","merchant_id":"0","icon":"http://139.199.211.51/yprj/uploads/product/110/icon.png?r=34546","product_name":"中国风女款加棉汉服毛绒斗篷","freight":0,"price":199}]}]
     * url :
     */

    public String url;
    public List<DataBean> data;

    public static class DataBean {
        /**
         * store_name : 优品官网
         * products : [{"id":"1","product_id":"110","option":{"label":"浅灰色","value":"均码"},"quantity":"1","merchant_id":"0","icon":"http://139.199.211.51/yprj/uploads/product/110/icon.png?r=34546","product_name":"中国风女款加棉汉服毛绒斗篷","freight":0,"price":199}]
         */

        public String store_name;
        public List<ProductsBean> products;
        public boolean isSelect;

        public static class ProductsBean {
            /**
             * id : 1
             * product_id : 110
             * option : {"label":"浅灰色","value":"均码"}
             * quantity : 1
             * merchant_id : 0
             * icon : http://139.199.211.51/yprj/uploads/product/110/icon.png?r=34546
             * product_name : 中国风女款加棉汉服毛绒斗篷
             * freight : 0
             * price : 199
             */

            public String id;
            public String product_id;
            public OptionBean option;
            public int  quantity;
            public String merchant_id;
            public String icon;
            public String product_name;
            public double freight;
            public double price;
            public double total_price;
            public boolean isSelect;

            public static class OptionBean {
                /**
                 * label : 浅灰色
                 * value : 均码
                 */

                public String label;
                public String value;
            }
        }
    }
}
